//
//  PlaySongViewController.h
//  Mecca
//
//  Created by Ryan Enguero on 5/26/14.
//  Copyright (c) 2014 TapDash Heuristics. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "MACircleProgressIndicator.h"



@interface PlaySongViewController : UIViewController <AVAudioPlayerDelegate, UIAlertViewDelegate, UITableViewDataSource, UITableViewDelegate, UIImagePickerControllerDelegate, NSURLConnectionDelegate>{


NSArray *allButtons;
    
}
@property (strong, nonatomic) IBOutlet MACircleProgressIndicator *smallProgressIndicator;
@property (strong, nonatomic) IBOutlet MACircleProgressIndicator *largeProgressIndicator;
@property (nonatomic,strong) NSFileHandle *handle;
@property (strong, nonatomic) IBOutlet UIButton *likeBtn;
@property (strong, nonatomic) IBOutlet UIButton *downloadBtn;


@property(strong, nonatomic) NSString *audioURL;
@property (strong, nonatomic) AVAudioPlayer *audioPlayer;
@property (strong, nonatomic) IBOutlet UITextField *commentTxt; 

@property (strong, nonatomic) IBOutlet UIImageView *imgAlbum;

@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *actLoading;
@property (strong, nonatomic) IBOutlet UIButton *btnComment;
@property (strong, nonatomic) IBOutlet UILabel *likeCount;

@property (weak, nonatomic) IBOutlet UIButton *btnPause;
@property (weak, nonatomic) IBOutlet UIButton *btnPlay;

@property (weak, nonatomic) IBOutlet UILabel *lblPrevLimit;
@property (weak, nonatomic) IBOutlet UILabel *lblPrevStart;

@property (strong, nonatomic) IBOutlet UITableView *tblComment;
@property (nonatomic, retain) NSMutableArray *downloadQueue;


- (IBAction)download:(id)sender;
- (IBAction)playDownloaded:(id)sender;
- (IBAction)rateAction:(id)sender;
- (IBAction)likeAction:(id)sender;
- (IBAction)postAction:(id)sender;
- (void)setImageString:(NSString *)strImage;
- (void)showImage:(NSString*)imageShow;
- (IBAction)backAction:(id)sender;
- (IBAction)btnRatings:(id)sender;
- (IBAction)btnShare:(id)sender;




@end
